<?php

include_once("../model/Model.php");
$comments = $_POST['comments'];
$title = $_FILES['imageFile']['name'];
$album = $_POST['album'];
$privacy = $_POST['privacy'];
$category = $_POST['category'];
$filename = $_FILES['imageFile']['name'];
$new_suggest=$_POST['new_suggest'];
//$ext = strtolower(pathinfo($filename, PATHINFO_EXTENSION)); 

$model = new Model();
$ans = $model->vaultImageFileUpload($comments,$title,$album,$privacy,$category,$filename,$new_suggest);

echo  "<script>parent.$.fancybox.close();</script>";

?>
